Skip to content

docs(adr): record credential transport decision (ADR 0041) - #5178

Open
thymikee wants to merge 5 commits into
mainfrom
docs/adr-credential-transport
Open

thymikee wants to merge 5 commits into
mainfrom
docs/adr-credential-transport

Conversation

@thymikee

@thymikee thymikee commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Summary

Records the accepted credential transport decision before any code: before agent-device sends a first-party credential to an operator-configured URL, the URL must use https: or loopback http:. 0.21.x warns on a failing URL; 0.22 refuses.

  • Adds docs/adr/0041-credential-transport.md and its index row. 0040 is taken on the 0.22 branch.
  • The ADR holds the review rules (finding criteria, reproduction scripts). docs/agents/security.md gets one pointer line, because docs/agents is at its 40 kB context budget; one sentence there is tightened to make room.

Supersedes the approach of #5150 (closed). The 0.21.x warning and the user-facing website section ship in a separate PR on main; the refusal ships on the 0.22 branch.

Validation

Tested SHA: e2ef8e5. Docs only, so runtime tests do not apply. No local gates ran; CI owns validation and is pending. OXC ignores Markdown.

Security

No runtime change: this PR does not alter how credentials are sent.

The decision covers a passive or active party on a link that is not TLS or loopback. It excludes a party that reads TLS traffic, controls the operator's own server, or runs as the same uid. AGENT_DEVICE_ALLOW_INSECURE_TRANSPORT=1 is the only override. It adds no redirect handling; existing redirect rules stay.

🤖 Generated with Claude Code


Start Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

View guided diff Turn on auto-fix

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@apex-sentinel-staging

This comment has been minimized.

docs/agents is at its context budget, so the agent guides keep one pointer
and the ADR holds the rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@apex-sentinel-staging

This comment has been minimized.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed against the latest diff

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread docs/adr/0041-credential-transport.md Resolved
Comment thread docs/adr/0041-credential-transport.md Resolved
Comment thread docs/adr/0041-credential-transport.md Resolved
Comment thread docs/adr/README.md Resolved
…out from ADR 0041

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@apex-sentinel-staging

This comment has been minimized.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@thymikee
thymikee force-pushed the docs/adr-credential-transport branch from 4235a4e to 2010c52 Compare November 28, 2026 12:58
@apex-sentinel-staging

This comment has been minimized.

@thymikee

Copy link
Copy Markdown
Member Author

The PR is ready at 2010c52, and the checks pass. Nothing here needs to change before merge.

Not blocking: each of these can be taken or left: the ADR says the client refuses while enforcement has not shipped and 0.21.x will only warn, so one open-gap line with a tracking link and no version plan would record that; the fetch defaults sentence does not hold for upload and artifact routes on the default transport, which use node:http and follow no redirect, so it could cover only non-checked, non-transfer requests; security.md could keep the "keep a plain write to the path the caller names" wording and shorten the pointer to "ADR 0041 owns credential transport." within the byte budget, which also drops "like" and the "only with a new decision" line that reads differently from the amendment rule in FORMAT.md; and the last review rules on reproducing runtime claims and checking for an existing owner are general process that could later move to the general review doc.

These earlier threads no longer apply and can be resolved: the redirect statement now rests on the operator's own daemon, and the requested protection is out of scope (the wording note on the fetch defaults sentence is what remains); the loopback proxy bypass is now stated in Consequences for every loopback host used; the rollout timeline is gone, and Status is only the accepted date; and the ADR number is kept on purpose because 0040 exists on the 0.22 branch.

Not verified here: the external statements (RFC 6750 section 5.3 wording, and the Docker, Go module and Git Credential Manager defaults) were not checked against their sources. The http upload ticket case and the NO_PROXY syntax for ::1 were not reproduced at runtime, and no tests were run locally. Relay, WebSocket URLs, provider URLs and redirect protections are out of scope and were not audited.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 28, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of dd4a6a3

Since the review of 2010c52: 0 new · 0 still open · 0 no longer raised

No open findings.

Not in the reviewers' scope (3 files)
  • docs/adr/0041-credential-transport.md: no reviewer was selected for this change
  • docs/adr/README.md: no reviewer was selected for this change
  • docs/agents/security.md: no reviewer was selected for this change

Reviewed with this repository's own Sentinel configuration (d2a4abe701be).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant